/**
 *
 */
package cc.xwolf.java8.lambda;

import java.util.Arrays;
import java.util.List;

/**
 * @author pingxu
 *
 */
public class LambdaDemo1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		final List<String> names = Arrays.asList("peter", "anna", "mike", "xenia");
		System.out.println(names);
		names.sort((String a, String b) -> a.compareTo(b));
		System.out.println(names);
	}

}
